package edu.szu.huhanpeng.doodlingFight.controller.preReg 
{
	import edu.szu.huhanpeng.doodlingFight.view.MsgDlgBoxMed;
	import edu.szu.huhanpeng.doodlingFight.view.SelectorMediator;
	import edu.szu.huhanpeng.doodlingFight.view.StageMed;
	import flash.display.Stage;
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.interfaces.INotifier;
	import org.puremvc.as3.patterns.command.MacroCommand;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * 预注册mediator
	 * @author Huhanpeng
	 */
	public class PreRegMediator extends SimpleCommand implements ICommand, INotifier 
	{
		
		override public function execute(note:INotification):void 
		{
			//舞台
			var stage:Stage = note.getBody() as Stage;
			facade.registerMediator( new StageMed( stage ) );
			
			
			//选中的棋子
			facade.registerMediator( new SelectorMediator() );
			
			//用户信息对话框
			facade.registerMediator( new MsgDlgBoxMed() );
			
		}
	}

}